<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"> <i class="icon-font"></i>
                <a href="/Admin">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">用户反馈</span>
            </div>
        </div>
        <!-- <div class="search-wrap">
            <div class="search-content">
                <form action="" method="get">
                    <table class="search-tab">
                        <tr>
                            <th width="70">关键字:</th>
                            <td>
                                <input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td>
                                <input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div> -->
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                           <!--  <th class="tc" width="5%">
                                <input class="allChoose" name="" type="checkbox"></th> -->
                            <th>ID</th>
                            <th>昵称</th>
                            <th>真实姓名</th>
                            <th>联系方式</th>
                            <th>意见内容</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        <foreach name="Uarr" item="vo">
                        <tr>
                        <td>{$vo.fid}</td>
                        <td>{$vo.username}</td>
                        <td>{$vo.realname}</td>
                        <td>{$vo.tel}</td>
                        <td>{$vo.ycontent}</td>
                        <td>{$vo.create_time}</td>


                         <!-- <td>{$vo.status}</td> -->
                        
                        <td>
                            <if condition="$vo.status eq 0 "> <a class="link-update" href="javascript:dian({$vo.fid},1)"><span style="color:green">标记</span></a>
                        <else /><a class="link-update" href="javascript:dian({$vo.fid},0)"><span style="color:red">取消标记</span>
                        </if></a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <a class="link-del" href="javascript:del({$vo['fid']})">删除</a>
                        </td>
                    </tr>
                    </foreach>
                </table>
                <div class="list-page">{$page}</div>
            </div>
        </form>
    </div>
</div>

<!--/main-->
<script type="text/javascript">
function del(id) {
    if(confirm("执行后将无法恢复，确定继续吗？温馨提示"))
            {
        $.post('__URL__/delete', {'sid':id}, function(data){
           alert(data);
           location.reload([true])  
        });
        exit;
        }
    }
    function dian(id,sta) {
         $.post('__URL__/biao', {'sid':id,'sta':sta}, function(data){
           alert(data);
           location.reload([true])  
        });
    }
</script>
</block>